package com.study.testSSMPlus.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.study.testSSMPlus.service.IJobService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuyu
 * @since 2019-12-21
 */
@Controller
@RequestMapping("/job")
public class JobController {

	@Autowired
	private IJobService jobService;
	
	@ResponseBody
	@GetMapping("/excute")
	public String excuteJob(Integer id) {
		System.out.println("进拉拉。。。");
		jobService.runJob(id);
		return "success";
	}
}

